package com.tcm.job.job;


import com.tcm.job.api.service.SettlementService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.apache.dubbo.config.annotation.Reference;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;

/**
 * 药房订单
 *
 * @author Kay
 * 2020-05-15 17:25
 */
@Component
public class InviterSettlementQuartz implements BaseTaskJob {

    @DubboReference(version = "0.0.1-alpha", check = false, timeout = 3000)
    private SettlementService settlementService;

    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {
        settlementService.settlementInviterOrder();
    }
}